<template>
  <van-tabbar route>
    <van-tabbar-item to="/">
      <span>首页</span>
      <template #icon="obj">
        <GeekIcon :name="obj.active ? 'home-sel' : 'home'" />
      </template>
    </van-tabbar-item>
    <van-tabbar-item to="/question">
      <span>问答</span>
      <template #icon="obj">
        <GeekIcon :name="obj.active ? 'qa-sel' : 'qa'" />
      </template>
    </van-tabbar-item>
    <van-tabbar-item to="/video" icon="friends-o">
      <span>视频</span>
      <template #icon="obj">
        <GeekIcon :name="obj.active ? 'video-sel' : 'video'" />
      </template>
    </van-tabbar-item>
    <van-tabbar-item to="/user" icon="setting-o">
      <span>我的</span>
      <template #icon="obj">
        <GeekIcon :name="obj.active ? 'mine-sel' : 'mine'" />
      </template>
    </van-tabbar-item>vc
  </van-tabbar>
</template>
<script>
export default {
  name: 'AppTabbar'
}
</script>
<style scoped lang="less">
// 深度穿透选择器
/deep/ .van-tabbar-item--active{
  color: #fc6627;
}

/deep/ .van-tabbar-item__icon {
  font-size: 20px;
}

/deep/ .van-tabbar-item__text {
  font-size: 10px;
}
</style>
